/*
 * TextStorageStrategy.h
 *
 *  Created on: 03/10/2009
 *      Author: nik0l4z
 */

#ifndef TEXTSTORAGESTRATEGY_H_
#define TEXTSTORAGESTRATEGY_H_

#include "StorageStrategy.h"
#include <iostream>
using namespace std;


class TextStorageStrategy: public StorageStrategy {

	private: Almacenamiento *almacenamiento;

	public:TextStorageStrategy();

	virtual ~TextStorageStrategy();

	public: virtual void saludar();

	public: virtual int saveData(Dato * data);

	public: virtual int saveData(string data);

	public: virtual void deleteData(int fileRefernce);

	public: virtual void deleteData(list<Clave*> clave);

	public: virtual int updateData(Dato *data,int fileReference);

	public: virtual void updateData(list<Dato*> datos);


     /*---------------------Getter & Setters-------------------*/
	public: void virtual setStorage(Almacenamiento *storage);

	public: virtual Almacenamiento *getStorage() const;

};

#endif /* TEXTSTORAGESTRATEGY_H_ */
